package com.wngbms.feigndemo.impl;

import lombok.Data;
import lombok.extern.slf4j.Slf4j;

import java.lang.annotation.Annotation;
import java.lang.reflect.Type;
import java.util.List;

@Slf4j
@Data
public class MethodMeta {

    String methodName;
    List<String> methodAnnotations;
    Class<?>[] parameterTypes;
    Type[] genericExceptionTypes;
    Annotation[][] parameterAnnotations;

    public Object invoke(Object[] argv) {
        log.info("meta:{}", this);
        log.info("args:{}", argv);
        return methodName;
    }

}
